package com.bwysj.loan.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwyjs.common.utils.PageUtils;
import com.bwyjs.common.utils.Query;
import com.bwysj.loan.dao.SubjectTypeDao;
import com.bwysj.loan.entity.SubjectTypeEntity;
import com.bwysj.loan.service.SubjectTypeService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("subjectTypeService")
public class SubjectTypeServiceImpl extends ServiceImpl<SubjectTypeDao, SubjectTypeEntity> implements SubjectTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SubjectTypeEntity> page = this.page(
                new Query<SubjectTypeEntity>().getPage(params),
                new QueryWrapper<SubjectTypeEntity>()
        );

        return new PageUtils(page);
    }

}